package cn.jdy.plugins.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;

/**
 * 附件信息
 *
 * @author guoxp
 * @date 2014年06月09日 下午21:00:24
 * @todo TODO
 * @package cn.jdy.plugins.entity
 * @project sjww-server
 */
@Entity
public class Attachment implements Serializable {

	private static final long serialVersionUID = 2940261624248501062L;
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
	@Column(length = 32)
	private String id;// 主键
	private int attachment_type; // 附件类型
	private long attachment_size; // 文件大小
	private String attachment_path; // 文件路径
	private Date post_time; // 上传时间
	private int is_del; // 是否删除
	private String attachment_name; // 文件名称
	private String OriginaFilename; // 原文件名称

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getAttachment_type() {
		return attachment_type;
	}

	public void setAttachment_type(int attachment_type) {
		this.attachment_type = attachment_type;
	}

	public long getAttachment_size() {
		return attachment_size;
	}

	public void setAttachment_size(long attachment_size) {
		this.attachment_size = attachment_size;
	}

	public String getAttachment_path() {
		return attachment_path;
	}

	public void setAttachment_path(String attachment_path) {
		this.attachment_path = attachment_path;
	}

	public Date getPost_time() {
		return post_time;
	}

	public void setPost_time(Date post_time) {
		this.post_time = post_time;
	}

	public int getIs_del() {
		return is_del;
	}

	public void setIs_del(int is_del) {
		this.is_del = is_del;
	}

	public String getAttachment_name() {
		return attachment_name;
	}

	public void setAttachment_name(String attachment_name) {
		this.attachment_name = attachment_name;
	}

	public String getOriginaFilename() {
		return OriginaFilename;
	}

	public void setOriginaFilename(String originaFilename) {
		OriginaFilename = originaFilename;
	}

}
